import request from '@/utils/request'
//获取学科信息数据列表
export const getSubjectListApi = params => {
    return request({
        url: 'admin/subject/subject',
        params
    })
}
//新增学科信息
export const addSubjectApi = data => {
    return request({
        url: 'admin/subject/subject',
        method: 'post',
        data
    })
}
//切换显示隐藏
export const changeShowtApi = data => {
    return request({
        url: 'admin/subject/subject/' + data.id,
        method: 'put',
        data
    })
}
//删除学科信息
export const delSubjectApi = id => {
    return request({
        url: 'admin/subject/subject/' + id,
        method: 'delete'
    })
}
//修改学科信息
export const editSubjectApi = data => {
    return request({
        url: 'admin/subject/subject/' + data.id,
        method: 'put',
        data
    })
}